<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>

    <title>悦章科技机构平台</title>

    <!--内容样式-->
    <link rel="stylesheet" href="__PUBLIC__/Home/css/style.css" />
    <link rel="stylesheet" href="__PUBLIC__/Home/css/page.css" />

</head>

<body>


<div class="main">
    <!--  头部  -->
    <include file="menu" />

    <!--  右侧内容  -->
    <div class="content">
        <div class= "ct-title">
            <div class="ctt-bt">客户列表</div>
            <div class="ctt-r">
                <form class="cttr-bd" action="{:U('Home/Index/customer')}" method="post">
                    <input type="text" placeholder="请输入姓名或手机号" class="cttrb-wb" name="keyword" value="{$keyword}">
                    <select class="cttrb-xl" name="stage">
                        <option value="">客户阶段</option>
                        <option value="1" <if condition="$stage eq 1">selected</if>>跟踪阶段</option>
                        <option value="2" <if condition="$stage eq 2">selected</if>>成交</option>
                        <option value="3" <if condition="$stage eq 3">selected</if>>没意向客户</option>
                        <option value="4" <if condition="$stage eq 4">selected</if>>流失客户</option>
                    </select>
                    <select class="cttrb-xl" name="source">
                        <option value="">客户来源</option>
                        <option value="1" <if condition="$source eq 1">selected</if>>线上咨询</option>
                        <option value="2" <if condition="$source eq 2">selected</if>>客户介绍</option>
                        <option value="3" <if condition="$source eq 3">selected</if>>学生介绍</option>
                        <option value="4" <if condition="$source eq 4">selected</if>>线下联系</option>
                        <option value="5" <if condition="$source eq 5">selected</if>>其他</option>
                    </select>
                    <select class="cttrb-xl" name="degree">
                        <option value="">重要程度</option>
                        <option value="1" <if condition="$degree eq 1">selected</if>>A类（极其重要）</option>
                        <option value="2" <if condition="$degree eq 2">selected</if>>B类（非常重要）</option>
                        <option value="3" <if condition="$degree eq 3">selected</if>>C类（重要）</option>
                        <option value="4" <if condition="$degree eq 4">selected</if>>D类（一般）</option>
                        <option value="5" <if condition="$degree eq 5">selected</if>>E类（不重要）</option>
                    </select>
                    <button class="cttrb-cx">查询</button>
                    <a href="{:U('Home/Index/addCustomer')}" class="cttrb-xz">新增客户</a>
                    <div class="divclear"></div>
                </form>
                <div class="divclear"></div>
            </div>
            <div class="divclear"></div>
        </div>

        <div class="ct-table">
            <table width="100%" border="0">
                <tbody>
                <tr>
                    <th scope="col" width="8%" style="border-top-left-radius: 10px;">客户姓名</th>
                    <th scope="col" width="8%">手机号</th>
                    <th scope="col" width="8%">重要程度</th>
                    <th scope="col" width="8%">客户来源</th>
                    <th scope="col" width="8%">客户阶段</th>
                    <th scope="col" width="8%">负责人</th>
                    <th scope="col" width="10%">添加时间</th>
                    <th scope="col" width="10%">最近联系时间</th>
                    <th scope="col" width="8%">联系次数</th>
                    <th scope="col" width="8%">被查看记录</th>
                    <th scope="col" width="16%" style="border-top-right-radius: 10px;">操作</th>
                </tr>
                <volist name="_list" id="vo">
                    <tr>
                        <td>{$vo.name}</td>
                        <td>{$vo.mobile}</td>
                        <td><if condition="$vo['degree'] eq 1">A类(极其重要)<elseif condition="$vo['degree'] eq 2"/>B类（非常重要）<elseif condition="$vo['degree'] eq 3"/>C类（重要）<elseif condition="$vo['degree'] eq 4"/>D类（一般）<else/>E类（不重要）</if></td>
                        <td><if condition="$vo['source'] eq 1">线上咨询<elseif condition="$vo['source'] eq 2"/>客户介绍<elseif condition="$vo['source'] eq 3"/>学生介绍<elseif condition="$vo['source'] eq 4"/>线下联系<else/>其他</if></td>
                        <td><if condition="$vo['stage'] eq 1">跟踪阶段<elseif condition="$vo['stage'] eq 2"/>成交<elseif condition="$vo['stage'] eq 3"/>没意向客户<else/>流失客户</if></td>
                        <td>{$vo.username}</td>
                        <td>{$vo.create_time|date='Y-m-d',###}</td>
                        <td>{$vo.last_time}</td>
                        <td>{$vo.contact_number}</td>
                        <td><a onClick="document.getElementById('tck-ckjl').style.display='block'">{$vo.this_see}/{$vo.see}</a></td>
                        <td><!--<a href="招生系统-客户列表-新增客户.html">编辑</a>-->
                            <a href="{:U('Home/Index/customerDetails',array('id'=>$vo['id']))}">详情</a>
                            <a href="{:U('Home/Index/addFollowUp',array('cid'=>$vo['id'],'type'=>1))}">添加跟进</a>
                            <a href="{:U('Home/Index/delCustomer',array('id'=>$vo['id']))}">删除</a>
                        </td>
                    </tr>
                </volist>
                </tbody>
            </table>
        </div>

        <div class="page">
            {$_page}
        </div>
        <!--<div class="ct-btn">-->
            <!--<div class="ctb-an"><</div>-->
            <!--<div class="ctb-an ctb-an-on">1</div>-->
            <!--<div class="ctb-an">2</div>-->
            <!--<div class="ctb-an">3</div>-->
            <!--<div class="ctb-an">></div>-->
            <!--<div class="divclear"></div>-->
        <!--</div>-->
    </div>
</div>

<!-- 被查看记录 弹出框-->
<div class="tck-demo" id="tck-ckjl">

    <div class="tk-box">
        <div class="tkb-title">
            <div class="tkbt-bt">被查看记录</div>
            <div class="tkbt-close" onClick="document.getElementById('tck-ckjl').style.display='none'">
                <img src="__PUBLIC__/Home/images/icon_delete.png" />
            </div>
            <div class="divclear"></div>
        </div>
        <table width="100%" border="0" class="tkb-table">
            <tbody>
            <tr>
                <th scope="col" width="40%">查看人</th>
                <th scope="col" width="30%">ip</th>
                <th scope="col" width="30%">查看时间</th>
            </tr>
            <tr>
                <td>周柏然</td>
                <td>192.168.100.255</td>
                <td>2020.12.30 12:00</td>
            </tr>
            <tr>
                <td>周柏然</td>
                <td>192.168.100.255</td>
                <td>2020.12.30 12:00</td>
            </tr>
            <tr>
                <td>周柏然</td>
                <td>192.168.100.255</td>
                <td>2020.12.30 12:00</td>
            </tr>
            <tr>
                <td>周柏然</td>
                <td>192.168.100.255</td>
                <td>2020.12.30 12:00</td>
            </tr>
            <tr>
                <td>周柏然</td>
                <td>192.168.100.255</td>
                <td>2020.12.30 12:00</td>
            </tr>
            <tr>
                <td>周柏然</td>
                <td>192.168.100.255</td>
                <td>2020.12.30 12:00</td>
            </tr>
            </tbody>
        </table>
        <div class="tkb-btn">
            <div class="tkbb-an"><</div>
            <div class="tkbb-an tkbb-an-on">1</div>
            <div class="tkbb-an">2</div>
            <div class="tkbb-an">3</div>
            <div class="tkbb-an">></div>
            <div class="divclear"></div>
        </div>
    </div>

</div>
</body>
</html>
